﻿<Window x:Class="Profit.Views.ConfirmationView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Profit.Controls"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        d:DesignHeight="149" d:DesignWidth="311"
        ShowInTaskbar="False"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        MinWidth="300"
        MinHeight="150"
        Title="{Binding Title}" Icon="/Profit;component/Resources/Icons/app_32.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Text="{Binding ConfirmationMessage}" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" />
        <local:DialogActionsPanel
            Grid.Row="1"
            ButtonOkContent="{Binding ButtonOkContent}"
            ButtonCancelContent="{Binding ButtonCancelContent}"
            ShowButtonCancel="{Binding ShowButtonCancel}"
            ButtonOkCommand="{Binding ValidateCommand}"/>
    </Grid>
</Window>
